﻿
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class ResetCurrentVersion

    'NOTE: The following procedure is required by the Workflow Designer
    'It can be modified using the Workflow Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Private Sub InitializeComponent()
        Me.CanModifyActivities = True
        Dim codecondition1 As System.Workflow.Activities.CodeCondition = New System.Workflow.Activities.CodeCondition()
        Dim correlationtoken1 As System.Workflow.Runtime.CorrelationToken = New System.Workflow.Runtime.CorrelationToken()
        Dim activitybind1 As System.Workflow.ComponentModel.ActivityBind = New System.Workflow.ComponentModel.ActivityBind()
        Me.terminateActivity1 = New System.Workflow.ComponentModel.TerminateActivity()
        Me.RestoreModeration = New System.Workflow.Activities.CodeActivity()
        Me.RestoreVersions = New System.Workflow.Activities.CodeActivity()
        Me.EnableModeration = New System.Workflow.Activities.CodeActivity()
        Me.RecycleItem = New System.Workflow.Activities.CodeActivity()
        Me.StoreVersions = New System.Workflow.Activities.CodeActivity()
        Me.VersionsOff = New System.Workflow.Activities.IfElseBranchActivity()
        Me.VersionsOn = New System.Workflow.Activities.IfElseBranchActivity()
        Me.IsVersionsOn = New System.Workflow.Activities.IfElseActivity()
        Me.onWorkflowActivated1 = New Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated()
        '
        'terminateActivity1
        '
        Me.terminateActivity1.Error = "Versioning is disabled."
        Me.terminateActivity1.Name = "terminateActivity1"
        '
        'RestoreModeration
        '
        Me.RestoreModeration.Name = "RestoreModeration"
        AddHandler Me.RestoreModeration.ExecuteCode, AddressOf Me.RestoreModeration_Execute
        '
        'RestoreVersions
        '
        Me.RestoreVersions.Name = "RestoreVersions"
        AddHandler Me.RestoreVersions.ExecuteCode, AddressOf Me.RestoreVersions_Execute
        '
        'EnableModeration
        '
        Me.EnableModeration.Name = "EnableModeration"
        AddHandler Me.EnableModeration.ExecuteCode, AddressOf Me.EnableModeration_Execute
        '
        'RecycleItem
        '
        Me.RecycleItem.Name = "RecycleItem"
        AddHandler Me.RecycleItem.ExecuteCode, AddressOf Me.RecycleItem_Execute
        '
        'StoreVersions
        '
        Me.StoreVersions.Description = "Stores the binary of each major version in a custom class."
        Me.StoreVersions.Name = "StoreVersions"
        AddHandler Me.StoreVersions.ExecuteCode, AddressOf Me.StoreVersions_Execute
        '
        'VersionsOff
        '
        Me.VersionsOff.Activities.Add(Me.terminateActivity1)
        Me.VersionsOff.Description = "Terminate workflow if versioning is disabled."
        Me.VersionsOff.Name = "VersionsOff"
        '
        'VersionsOn
        '
        Me.VersionsOn.Activities.Add(Me.StoreVersions)
        Me.VersionsOn.Activities.Add(Me.RecycleItem)
        Me.VersionsOn.Activities.Add(Me.EnableModeration)
        Me.VersionsOn.Activities.Add(Me.RestoreVersions)
        Me.VersionsOn.Activities.Add(Me.RestoreModeration)
        AddHandler codecondition1.Condition, AddressOf Me.AreVersionsOn
        Me.VersionsOn.Condition = codecondition1
        Me.VersionsOn.Name = "VersionsOn"
        '
        'IsVersionsOn
        '
        Me.IsVersionsOn.Activities.Add(Me.VersionsOn)
        Me.IsVersionsOn.Activities.Add(Me.VersionsOff)
        Me.IsVersionsOn.Name = "IsVersionsOn"
        '
        'onWorkflowActivated1
        '
        correlationtoken1.Name = "workflowToken"
        correlationtoken1.OwnerActivityName = "ResetCurrentVersion"
        Me.onWorkflowActivated1.CorrelationToken = correlationtoken1
        Me.onWorkflowActivated1.EventName = "OnWorkflowActivated"
        Me.onWorkflowActivated1.Name = "onWorkflowActivated1"
        activitybind1.Name = "ResetCurrentVersion"
        activitybind1.Path = "workflowProperties"
        Me.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, CType(activitybind1, System.Workflow.ComponentModel.ActivityBind))
        '
        'ResetCurrentVersion
        '
        Me.Activities.Add(Me.onWorkflowActivated1)
        Me.Activities.Add(Me.IsVersionsOn)
        Me.Name = "ResetCurrentVersion"
        Me.CanModifyActivities = False

    End Sub
    Private RestoreModeration As System.Workflow.Activities.CodeActivity
    Private EnableModeration As System.Workflow.Activities.CodeActivity
    Private terminateActivity1 As System.Workflow.ComponentModel.TerminateActivity
    Private RestoreVersions As System.Workflow.Activities.CodeActivity
    Private RecycleItem As System.Workflow.Activities.CodeActivity
    Private StoreVersions As System.Workflow.Activities.CodeActivity
    Private VersionsOff As System.Workflow.Activities.IfElseBranchActivity
    Private VersionsOn As System.Workflow.Activities.IfElseBranchActivity
    Private IsVersionsOn As System.Workflow.Activities.IfElseActivity
    Private onWorkflowActivated1 As Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated


End Class
